package com.ziya.android.a3dmodel.course.two

import android.opengl.GLSurfaceView.Renderer
import com.ziya.android.a3dmodel.nativelib.CourseTwoNative
import javax.microedition.khronos.egl.EGLConfig
import javax.microedition.khronos.opengles.GL10

class CourseTwoNativeRenderer : Renderer {
    override fun onSurfaceCreated(gl: GL10, p1: EGLConfig) {
        CourseTwoNative.onSurfaceCreated()
    }
    override fun onSurfaceChanged(gl: GL10, width: Int, height: Int) {
        CourseTwoNative.angleCubeSurfaceChanged(width, height)
    }

    override fun onDrawFrame(gl: GL10) {
        CourseTwoNative.drawCubeAngle()
    }
}